﻿using AutoMapper;
using WeatheRx.DomainModel.Applicants;
using WeatheRx.DomainModel.Search;
using WeatheRx.Managers.Config;
using WeatheRx.Managers.Search;
using WeatheRx.Web.Models.Search;

namespace WeatheRx.Web.Config
{
    public static class AutomapConfig
    {
        public static void InitializeMap()
        {
            //initialize the common managers
            WeatheRx.Managers.Config.AutomapConfig.InitializeMap();

            Mapper.CreateMap<ApplicantSearchResult, ApplicantSearchResultViewModel>()
                .ForMember(dest => dest.JobStatus, src => src.ResolveUsing(x => x.JobStatus)
                );
        }
    }
}